package com.igoal.web.model;

import java.util.ArrayList;
import java.util.List;

import com.igoal.dto.UserGoalDTO;
import com.igoal.dto.UserGoalPhaseDTO;

public class SMARTGoalModel extends BaseModel {
	String newGoalTitle;
	UserGoalDTO userGoal = new UserGoalDTO();
	
	UserGoalPhaseDTO phase1 = new UserGoalPhaseDTO(1);
	UserGoalPhaseDTO phase2 = new UserGoalPhaseDTO(2);
	UserGoalPhaseDTO phase3 = new UserGoalPhaseDTO(3);
	UserGoalPhaseDTO phase4 = new UserGoalPhaseDTO(4);
	UserGoalPhaseDTO phase5 = new UserGoalPhaseDTO(5);
	UserGoalPhaseDTO phase6 = new UserGoalPhaseDTO(6);
	UserGoalPhaseDTO phase7 = new UserGoalPhaseDTO(7);
	UserGoalPhaseDTO phase8 = new UserGoalPhaseDTO(8);
	UserGoalPhaseDTO phase9 = new UserGoalPhaseDTO(9);
	UserGoalPhaseDTO phase10 = new UserGoalPhaseDTO(10);
	
	List<UserGoalPhaseDTO> phases = new ArrayList<UserGoalPhaseDTO>();
	
	public UserGoalDTO getUserGoal() {
		return userGoal;
	}
	
	public void setUserGoal(UserGoalDTO userGoal) {
		this.userGoal = userGoal;
	}
	public UserGoalPhaseDTO getPhase1() {
		return phase1;
	}
	public void setPhase1(UserGoalPhaseDTO phase1) {
		this.phase1 = phase1;
	}
	public UserGoalPhaseDTO getPhase2() {
		return phase2;
	}
	public void setPhase2(UserGoalPhaseDTO phase2) {
		this.phase2 = phase2;
	}
	public UserGoalPhaseDTO getPhase3() {
		return phase3;
	}
	public void setPhase3(UserGoalPhaseDTO phase3) {
		this.phase3 = phase3;
	}
	public UserGoalPhaseDTO getPhase4() {
		return phase4;
	}
	public void setPhase4(UserGoalPhaseDTO phase4) {
		this.phase4 = phase4;
	}
	public UserGoalPhaseDTO getPhase5() {
		return phase5;
	}
	public void setPhase5(UserGoalPhaseDTO phase5) {
		this.phase5 = phase5;
	}
	public UserGoalPhaseDTO getPhase6() {
		return phase6;
	}
	public void setPhase6(UserGoalPhaseDTO phase6) {
		this.phase6 = phase6;
	}
	public UserGoalPhaseDTO getPhase7() {
		return phase7;
	}
	public void setPhase7(UserGoalPhaseDTO phase7) {
		this.phase7 = phase7;
	}
	public UserGoalPhaseDTO getPhase8() {
		return phase8;
	}
	public void setPhase8(UserGoalPhaseDTO phase8) {
		this.phase8 = phase8;
	}
	public UserGoalPhaseDTO getPhase9() {
		return phase9;
	}
	public void setPhase9(UserGoalPhaseDTO phase9) {
		this.phase9 = phase9;
	}
	public UserGoalPhaseDTO getPhase10() {
		return phase10;
	}
	public void setPhase10(UserGoalPhaseDTO phase10) {
		this.phase10 = phase10;
	}
	public String getNewGoalTitle() {
		return newGoalTitle;
	}
	public void setNewGoalTitle(String newGoalTitle) {
		this.newGoalTitle = newGoalTitle;
	}
	public List<UserGoalPhaseDTO> getPhases() {
		return phases;
	}
	public void setPhases(List<UserGoalPhaseDTO> phases) {
		this.phases = phases;
	}
	public String getGoalTitle(){
		return this.userGoal.getTitle();
	}
	public int getGoalCompletePercent(){
		return this.userGoal.getPercent().intValue();
	}
}
